<?php
namespace app\controller;

use app\BaseController;

class Demo extends BaseController
{
	public function index(){
		$data = [
			"status" => 1,
			"message" => "OK",
			"result" => [
				'id' => 1001,
				'name' => 'xiaoxiao',
				'sex' => 'm',
	 		],
		];
		$header = [
			"Token" => "fresh1222",
		];
		return json($data,200,$header);
	}

	public function request(){
		dump($this->request->param("age",1,"intval"));
	}
}